<h3>Konten Management</h3>
<p>
    <?php foreach ($access->result() as $a): ?>
        <?php echo get_add(1, 'tabelkontens/add/') ?>
    <?php endforeach ?>
</p>

<table class="data">
    <tr class="data">
        <th class="data" width="30px">No</th>
        <th class="data" width="100px">Judul</th>
        <th class="data" width="">isi</th>
        <th class="data" width="100px">Pilihan</th>
    </tr>
    <?php foreach ($rows->result() as $tabelkontens): ?>
        <tr class="data">
            <td class="data" width="30px"><?php echo $i ?></td>
            <td class="data"><?php echo $tabelkontens->judul ?></td>
            <td class="data"><?php echo word_limiter($tabelkontens->isi, 25) ?></td>
            <td class="data" width="75px">
        <center>
            <a href="<?php echo base_url() ?>tabelkontens/show/<?php echo $tabelkontens->no_id ?>"><img src="<?php echo base_url() ?>img/detail.png"></a>&nbsp;&nbsp;

            <?php foreach ($access->result() as $a): ?> 
                <?php echo get_edit($a->news_edit, 'tabelkontens/edit/', $tabelkontens->no_id) ?>&nbsp;&nbsp;
                <?php // echo get_delete($a->news_delete, 'tabelkontens/delete/', $tabelkontens->no_id) ?>
                <!--&nbsp;&nbsp;-->
            <?php endforeach ?>

        </center>
        <?php $i++ ?>
    <?php endforeach ?>
</td>
</tr>

</table>

